import request from '@/plugins/request';

/*.then(res => {
	// 返回数据
})
	.catch(err => {
		// 异常情况
	})*/
export default {
    // /attendance/findByPage
    // 按条件查询
    findByPage(data) {
        return request({
            url: '/api/attendance/findByPage',
            method: 'post',
            data
        });
    },
    ///attendance/insertAttendance
    // 打卡
    insertAttendance(data) {
        return request({
            url: '/api/attendance/insertAttendance',
            method: 'post',
            data
        })
    },


    ///attendance/updateAttendance
    // 修改
    updateAttendance(data) {
        return request({
            url: '/api/attendance/updateAttendance',
            method: 'post',
            data
        })
    },
    ///attendance/selectAttendanceById
    // id 获取详情
    selectAttendanceById(data) {
        return request({
            url: '/api/attendance/selectAttendanceById',
            method: 'post',
            data
        })
    },
    ///attendance/deleteById
    // 删除
    deleteById(data) {
        return request({
            url: '/api/attendance/deleteById',
            method: 'post',
            data
        })
    },

}
